<!--使用道具弹窗-->
<script setup>

import GlobalDialog from "@/components/common/dialog/GlobalDialog.vue";
import ItemTabs from "@/components/item/ItemTabs.vue";
import {ItemType} from "@ginstone/nga-api/dist/src/enums/ItemType";


// 弹窗名称
const name = 'item_use'


</script>

<template>
  <global-dialog :name="name" destroy-on-close width="50%">
    <template #default="{data}">
      <item-tabs :item-type="data.userId?ItemType.TO_USER:ItemType.TO_REPLY"
                 :reply-id="data.replyId"
                 :topic-id="data.topicId"
                 :user-id="data.userId"
                 tab="item_store"
      />
    </template>
    <template #header="{data}">
      使用道具
    </template>
  </global-dialog>
</template>

<style scoped>

</style>